css: Avoid excessive shadow rendering
authorMatthias Clasen <mclasen@redhat.com>
Tue, 2 Dec 2014 13:29:24 +0000 (08:29 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 2 Dec 2014 13:29:24 +0000 (08:29 -0500)
commitcb3393f001b432cf863dc3d2e8eba63b5a8a6647
tree55b7e0957702b2867b4c2c537e82191d577c6a30
parent73e6a05e386b58fd6e38b0f14a7b4fb83c436d34
css: Avoid excessive shadow rendering

The shadow rendering code had code to exit early if we determine
that the shadow is entirely clipped away. Unfortunately, the check
based on cairo clip extents fails for any clip regions that are
more complicated than axis-aligned rectangles, and we are using
a hollow rounded rectangle here. So, instead, do the check manually,
using the just-introduced API in GtkRoundedBox.
gtk/gtkcssshadowvalue.c